﻿using MyCourseManager.View;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace MyCourseManager
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {

        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            if (new LoginView().ShowDialog() == true) { //未关闭该窗口时一直停留在这一句不会往下执行
                new MainView().ShowDialog();//停留在主窗口
            }

            Application.Current.Shutdown();
        }

    }
}
